package com.ruoyi.project.app.config;

import org.springframework.stereotype.Component;
import org.springframework.transaction.event.TransactionalEventListener;

@Component
public class TransactionalMessageListener {  
      
    @TransactionalEventListener(fallbackExecution = true)
    public void handle(String username){
        System.out.println(username);
    }  
}
